<?php
namespace Home\Model;
use Think\Model;
class ContactModel extends Model{

    public function Insert($data){
        $data=$data?$data:I('post.');
        $exit=$this->where(array('phone_num'=>$data['phone_num']))->find();
        if($exit){
            return false;
        }
        $detail=$this->add($data);
        if($detail){
            return true;
        }
        else{
            return false;
        }
    }
}